home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Utilities
/
Laplace
/
Data
/
Include
/
standard.lh
< prev
next >
Wrap
Text File
|
1996-12-30
|
871b
|
36 lines
/******************************************************/
/* laplace standart library 21.12.1996 by P!\K / Un0X */
/******************************************************/
/******************************************************/
/* umatrix() */
/* create square matrix of ones in the main */
/* diagonal */
/******************************************************/
procedure umatrix(n)
{
return( matrix(n,n,a,b,
if (a == b)
1;
else
0;
)
);
}
/******************************************************/
/* angle() */
/* returns the angle between to vectors */
/******************************************************/
procedure angle(a,b)
{
return(
acos(
a * b / (abs(a) * abs(b))
)
);
}